import request from '@src/utils/request';
import { URL } from '@src/configs/constant';

// 交易统计曲线
export async function getTransactionNumByTime(params) {
  const { ChainId = '' } = params;
  const res = await request({
    url: URL,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    params: {
      cmb: 'GetTransactionNumByTime',
      AllTime: true,
      ChainId,
    },
    openLoading: false,
  });
  return res;
}
